home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
HYP
/
H-I
/
HyperTalkHelp.cpt
/
HyperTalk Tutorial Sampler 1.1
/
card_4849.txt
< prev
next >
Wrap
Text File
|
1989-02-26
|
2KB
|
109 lines
-- card: 4849 from stack: in.1
-- bmap block id: 0
-- flags: 0000
-- background id: 2619
-- name:
-- part 1 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=44 top=26 right=62 bottom=78
-- title width / last selected line: 0
-- icon id / first selected line: 32462 / 32462
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New Button
----- HyperTalk script -----
on mouseUp
play "Boing" tempo 120 a
push card
visual zoom open
go to card id 88379 of stack "Help"
end mouseUp
-- part contents for background part 10
----- text -----
The "visual" command sets up a visual effect to occur when switching between cards (using the "go"
command). The word "effect" is optional.
The visual effects you can use are:
zoom open
zoom close
dissolve
checkerboard
venitian blinds
iris open
iris close
wipe left
wipe right
wipe up
wipe down
barn door open
barn door close
scroll left
scroll right
scroll up
scroll down
You can also add these modifiers AFTER the effect:
fast
slow or slowly
very fast
very slow or very slowly
Try the Test Button, then change the first visual effect to "iris close". Test it, then add the word "slowly" after "iris close".
You can also add these added effects after the main effect:
to black
to gray
to to white
to inverse
Now try "iris close slowly to gray".
Experiment with the different types of effects to see what they do.
(The "set lockMessages to true/false" commands in the Script Window are needed for this tutorial. You do not need them when writing your own scripts.)
Click ? to find out more about "Visual".
-- part contents for background part 6
----- text -----
Visual Effect
-- part contents for background part 9
----- text -----
on mouseUp
set lockMessages to true
visual effect dissolve
go to prev card
visual effect wipe right
go to next card
set lockMessages to true
end mouseUp
-- part contents for background part 13
----- text -----
on mouseUp
set lockMessages to true
visual effect dissolve
go to prev card
visual effect wipe right
go to next card
set lockMessages to true
end mouseUp